export default {
  state: {
    // 表格中显示的列
    selectedColumnList: localStorage.getItem('zut_column_list'),
    selectedFiles: [],
    isBatchOperation: false
  },
  mutations: {
    /**
     * 改变表格显示列
     */
    changeSelectedColumnList(state, data) {
      localStorage.setItem('zut_column_list', data.toString())
      state.selectedColumnList = data.toString()
    },
    /**
     * 设置批量操作模式下被选中的文件列表
     */
    changeSelectedFiles(state, data) {
      state.selectedFiles = data
    },
    /**
     * 设置是否批量操作
     */
    changeIsBatchOperation(state, data) {
      state.isBatchOperation = data
    }
  },
  actions: {}
}
